<form action="<?=$action?>" method="<?=$method?>" id="<?=$form_id?>" <?if ($this->multipart):?> enctype="multipart/form-data"<?endif;?> >

    <?php
    foreach ($fields as $field){
        $field->show();
    }
    ?>

    <div class="form_submit">
        <input class="submit_button" name="submitted" type="submit" value="<?=$submit_text?>" />
        <?if ($cancel):?>
            <input class="submit_button" type="submit" name="cancel" value="<?=$cancel[0]?>"/>
        <?endif;?>
    </div>
</form>